//
//  MZMessageNet.m
//  民族文化宫
//
//  Created by WANG CUNRUI on 14/6/19.
//  Copyright (c) 2014年 WANG CUNRUI. All rights reserved.
//

#import "MZMessageNet.h"

@implementation MZMessageNet

static MZMessageNet *_sharedNetAccessOfProduct;

+ (MZMessageNet *)sharedNetAccessOfProduct
{
    if (!_sharedNetAccessOfProduct) {
        _sharedNetAccessOfProduct = [[MZMessageNet alloc] init];
    }
    return _sharedNetAccessOfProduct;
}
- (void)downloadJSONDate:(NSURL *)url
{
    
    ASIHTTPRequest *request = [[ASIHTTPRequest alloc] initWithURL:url];
    request.delegate = self;
    [request startAsynchronous];
    NSLog(@"下载产品数据中");
}
- (void)requestFinished:(ASIHTTPRequest *)request
{
   
    
    NSDictionary *dict = [[request responseData] JSONValue];
    NSMutableArray *data = [dict objectForKey:@"DATA"];
    NSLog(@"%lu",(unsigned long)[data count]);
    
    
    
    NSLog(@"产品页面下载完成");
}
- (void)requestFailed:(ASIHTTPRequest *)request
{
    NSLog(@"产品页面下载失败");
}

@end



